package com.acme.domain;

import java.util.ArrayList;
import java.util.List;

public class MarketData {
	private static List<Order> orders = new ArrayList<Order>();
	
	public MarketData(List<Order> orderList){
		synchronized (orders) {
			for (Order order : orderList) {
				orders.add(order);
			}
			orders.notifyAll();
		}
	}
	
	public static List<Order> get() throws InterruptedException{
		return orders;
	}
}
